customlayout: Convert docs
authorMatthias Clasen <mclasen@redhat.com>
Sun, 28 Feb 2021 18:01:27 +0000 (13:01 -0500)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:37:35 +0000 (16:37 +0000)
gtk/gtkcustomlayout.c
gtk/gtkcustomlayout.h

index 32d2c37a9e354ad13e2fa79837164effae43e7a0..aa64882e2ee55fda26d23b005b8eb9d34406b2ba 100644 (file)
@@ -1,15 +1,12 @@
 /**
- * SECTION:gtkcustomlayout
- * @Title: GtkCustomLayout
- * @Short_description: A convenience layout manager
+ * GtkCustomLayout:
  *
- * #GtkCustomLayout is a convenience type meant to be used as a transition
- * mechanism between #GtkWidgets implementing a layout policy, and
- * #GtkLayoutManager classes.
+ * `GtkCustomLayout` uses closures for size negotiation.
  *
- * A #GtkCustomLayout uses closures matching to the old #GtkWidget virtual
- * functions for size negotiation, as a convenience API to ease the porting
- * towards the corresponding #GtkLayoutManager virtual functions.
+ * A `GtkCustomLayout `uses closures matching to the old `GtkWidget`
+ * virtual functions for size negotiation, as a convenience API to
+ * ease the porting towards the corresponding `GtkLayoutManager
+ * virtual functions.
  */
 
 #include "config.h"
@@ -98,7 +95,7 @@ gtk_custom_layout_init (GtkCustomLayout *self)
 /**
  * gtk_custom_layout_new:
  * @request_mode: (nullable) (scope call): a function to retrieve
- *   the #GtkSizeRequestMode of the widget using the layout; the
+ *   the `GtkSizeRequestMode` of the widget using the layout; the
  *   default request mode is %GTK_SIZE_REQUEST_CONSTANT_SIZE
  * @measure: (not nullable) (scope call): a function to measure the widget using the layout manager
  * @allocate: (not nullable) (scope call): a function to allocate the children of the widget using
@@ -106,11 +103,11 @@ gtk_custom_layout_init (GtkCustomLayout *self)
  *
  * Creates a new legacy layout manager.
  *
- * Legacy layout managers map to the old #GtkWidget size negotiation
+ * Legacy layout managers map to the old `GtkWidget` size negotiation
  * virtual functions, and are meant to be used during the transition
  * from layout containers to layout manager delegates.
  *
- * Returns: (transfer full): the newly created #GtkCustomLayout
+ * Returns: (transfer full): the newly created `GtkCustomLayout`
  */
 GtkLayoutManager *
 gtk_custom_layout_new (GtkCustomRequestModeFunc request_mode,
index 21beb048535e8c1a4e8e9aeea8d07abc4dacef88..0dccb7d718b2cc50d3dc0a5f9e045812966a4c0f 100644 (file)
@@ -59,7 +59,7 @@ typedef void (* GtkCustomMeasureFunc) (GtkWidget      *widget,
  * @height: the new height of the widget
  * @baseline: the new baseline of the widget, or -1
  *
- * A function to be used by #GtkCustomLayout to allocate a widget.
+ * A function to be used by `GtkCustomLayout` to allocate a widget.
  */
 typedef void (* GtkCustomAllocateFunc) (GtkWidget    *widget,
                                         int           width,